package com.zrrd.learn.chapter08面向对象.car;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 车类
 *
 * @author wrn
 * @version 1.0
 * @date 2023/7/27 14:16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class car implements Driver{

    private String color;
    private String pinpai;
    private String xinghao;

    public void show() {
        System.out.println("我是颜色为" + color + ",品牌为" + pinpai + ",型号为" + xinghao + "的汽车");
    }

    @Override
    public void run() {
        System.out.println("用油跑");
    }
}
